package test

import breeze.linalg.DenseVector

/**
  * Created by liuwei on 2017/7/7.
  */
object TestSplit {
  def isIntByRegex(s : String,patt :String) = {
    val pattern = patt.r
    s match {
      case pattern(_*) => true
      case _ => false
    }
  }
  def main(args: Array[String]): Unit = {
var arr  = Array(1,23)
    println(arr.toSeq)

    println(isIntByRegex("11","[0-9]"))

    val modules = Seq("a","b","s")
    val sb = new StringBuffer(32)
    modules.foreach(module=>{
      sb.append(module)
      sb.append(",")
    })
    val str =sb.substring(0,sb.length()-1)
    println(str)
//    val s ="日头\t在\t鹿\t脖子\t岗上\t烧\t着\t半 面子"
//    val ss = s.split("\t| +")
//    ss.foreach(println)

//    var arr1:Array[Double] = new Array[Double](3000)
//    for(i <- 0 to arr1.length-1){
//      arr1(i) = i%10
//    }
//    arr1.foreach(println)
//    val a = new DenseVector[Double](351000000)
//    println(a.length)



  }

}
